Chasing Bottoms: A Case Study in Program Verification in the Presence of Partial and Infinite Values

نویسندگان

  • Nils Anders Danielsson
  • Patrik Jansson
چکیده

This work is a case study in program verification: We have written a simple parser and a corresponding pretty-printer in a nonstrict functional programming language with lifted pairs and functions (Haskell). A natural aim is to prove that the programs are, in some sense, each other’s inverses. The presence of partial and infinite values in the domains makes this exercise interesting, and having lifted types adds an extra spice to the task. We have tackled the problem in different ways, and this is a report on the merits of those approaches. More specifically, we first describe a method for testing properties of programs in the presence of partial and infinite values. By testing before proving we avoid wasting time trying to prove statements that are not valid. Then we prove that the programs we have written are in fact (more or less) inverses using first fixpoint induction and then the approximation

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Estimation of AR Parameters in the Presence of Additive Contamination in the Infinite Variance Case

If we try to estimate the parameters of the AR process {Xn} using the observed process {Xn+Zn} then these estimates will be badly biased and not consistent but we can minimize the damage using a robust estimation procedure such as GM-estimation. The question is does additive contamination affect estimates of “core” parameters in the infinite variance case to the same extent that it does in the ...

متن کامل

Evaluation of ecological status of the Persian Gulf inshore waters (Hormozgan rocky bottoms) using macrophytic communities and a macroalgae biological index, EEI

Marine benthic macrophytes (seaweed and seagrasses) are key structural and functional components of some of the most productive ecosystems of the world. They absorb nutrients through their surface directly from the marine environment and thus they are very important biological elements for the estimation of ecological status, representing reliable indicators of coastal waters. The aim of this s...

متن کامل

Introduction of a Reliable Software for the Calculation of the Gamma Index

Introduction: The gamma index is a known parameter for radiotherapy dose verification. Many free and commercial programs have been written for the calculation of this index. However, the verification of the results has been overlooked in many of the programs. The present study tested the validity of three gamma index calculator programs. Material and ...

متن کامل

Cross-Linguistic Transfer Revisited: The Case of English and Persian

The present study sought to investigate the evidence for cross-linguistic transfer in a partial English immersion and non-immersion educational setting. To this end, a total of 145 first, third and fifth graders in a partial English immersion program and 95 students from the same grade levels in a non-immersion program were chosen. Six different English and Persian tests were administered: the ...

متن کامل

Comparative evaluation between hypericin (hypiran) and fluoxetine in treatment of companion dogs with tail chasing

The aim of the present study was to compare the effects of hypericin and fluoxetine in the treatment of companion dogs with tail chasing in Ahvaz district. In the present survey, eighteen dogs with tail chasing were assigned into three equal groups for a three-year period. The dogs were randomly classified based on different treatment groups. During 15 weeks, dogs of group A were given 0.05 mg ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004